package cloudInformation.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: BookStore
 * @ClassName OpenApiCponfig
 * @description:
 * @author: 陈智博
 * @create: 2024-12-16 10:32
 * @Version 1.0
 **/
@Configuration
@EnableKnife4j
public class OpenApiConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("xxx")
                        .description("yyy")
                        .version("1.0.0")
                        .contact(new Contact().name("阿拉丁神灯").email("1832818938@qq.com")));

    }

}
